import { RouteConfig } from 'vue-router'
import ViewPage from '@/pages/information/view/ViewPage.vue'
import CalendarPage from '@/pages/information/calendar/CalendarPage.vue'
import DetailPage from '@/pages/information/view/detail/DetailPage.vue'
import NonFarmingPage from '@/pages/information/non-farming/NonFarmingPage.vue'

const ViewDetailRoute: RouteConfig = {
  path: '/view/:id',
  component: DetailPage
}

const InformationRoutes: RouteConfig[] = [
  {
    path: '',
    redirect: '/information/view'
  },
  {
    path: 'view',
    component: ViewPage
  },
  {
    path: 'calendar',
    component: CalendarPage
  },
  {
    path: 'nonfarming',
    component: NonFarmingPage
  }
]
export { ViewDetailRoute }
export default InformationRoutes
